2026-09-20 · a-plus, comptia, class-notes
Data sent across a network is wrapped in layers, like envelopes inside envelopes (
Class notes · Professor Messer, CompTIA A+ 220-1201 Core 1 · Section 2 (objectives 2.1–2.8)
Quick reference: the short version of this section is the Section 2 cheat sheet.
By the end of these notes you should be able to:
Data sent across a network is wrapped in layers, like envelopes inside envelopes (
encapsulation):
+-----------------------------------------------------------------+ | Ethernet frame (MAC addresses — gets it across the local link) | | +-----------------------------------------------------------+ | | | IP packet (IP addresses — gets it to the right computer) | | | | +-----------------------------------------------------+ | | | | | TCP or UDP segment (ports — gets it to the right app)| | | | | | +-----------------------------------------------+ | | | | | | | Application data (web page, email, DNS query) | | | | | | | +-----------------------------------------------+ | | | | | +-----------------------------------------------------+ | | | +-----------------------------------------------------------+ | +-----------------------------------------------------------------+- IP delivers packets between devices using IP addresses. It doesn't guarantee delivery.
TCP
UDP
Connection
Connection-oriented: sets up a connection first
Connectionless: just sends
Reliability
Acknowledges data; retransmits losses; keeps order
No acknowledgements or retransmission
Overhead
Higher
Lower — faster
Used for
Web (HTTPS), email, file transfer, SSH, RDP
DNS queries, DHCP, streaming, VoIP, online gaming
The TCP three-way handshake:
Client Server | ---- SYN (let's talk) ----------> | | <--- SYN-ACK (ok, let's talk) --- | | ---- ACK (confirmed) -----------> | | connection established |
Ports run from 0 to 65,535.
Port
Protocol
TCP/UDP
Purpose
Secure?
20, 21
FTP
TCP
File transfer (21 control, 20 data)
No — cleartext
22
SSH
TCP
Encrypted remote shell; also SFTP and SCP
Yes
23
Telnet
TCP
Remote shell
No — cleartext, legacy
25
SMTP
TCP
Sending mail between servers
Plain by default; STARTTLS adds encryption
53
DNS
UDP (TCP for large replies and zone transfers)
Name resolution
—
67, 68
DHCP
UDP
Automatic IP configuration (67 server, 68 client)
—
80
HTTP
TCP
Web
No
110
POP3
TCP
Download mail
No (995 for POP3S)
143
IMAP
TCP
Access mail kept on the server
No (993 for IMAPS)
389
LDAP
TCP/UDP
Directory queries (Active Directory)
No
443
HTTPS
TCP
Web over TLS
Yes
445
SMB
TCP
Windows file and printer sharing
Supports encryption (SMB 3)
636
LDAPS
TCP
LDAP over TLS
Yes
3389
RDP
TCP
Remote Desktop
Encrypted — but a major attack target
Useful extras outside the exam list: 587 (mail submission), 993 (IMAPS), 995 (POP3S), 137–139 (NetBIOS), 161/162 (SNMP), 514 (syslog).
Scenario
Port(s)
A user can browse http:// sites but not https:// sites
443 is blocked
An admin needs an encrypted command-line session to a Linux server
22 (SSH)
An email client downloads mail and removes it from the server
110 (or 995 secure) — POP3
An email client keeps mail synced on the server across devices
143 (or 993 secure) — IMAP
PCs get no IP address automatically
67/68 (DHCP)
A PC can reach 8.8.8.8 but not google.com
53 (DNS)
Mapping a network drive to \\fileserver\share
445 (SMB)
Test-NetConnection fileserver -Port 445 \
Get-NetTCPConnection -State Listen \
netstat -ano \
nc -zv fileserver 445 ss -tulpn
Band
Range
Speed
Interference
Channels
2.4 GHz
Longest
Lowest
Highest (microwaves, Bluetooth, neighbours)
Few; only 3 non-overlapping
5 GHz
Medium
Higher
Lower
Many more
6 GHz (Wi-Fi 6E / 7)
Shortest
Highest
Lowest
Lots of clean spectrum
Each 20 MHz channel overlaps its neighbours. Only 1, 6 and 11 don't overlap each other:
Ch: 1 2 3 4 5 6 7 8 9 10 11 [=========] [=========] [=========] 1 6 11- Neighbouring access points should use different non-overlapping channels.
Standard
Name
Bands
802.11n
Wi-Fi 4
2.4 / 5 GHz
802.11ac
Wi-Fi 5
5 GHz
802.11ax
Wi-Fi 6 / 6E
2.4 / 5 GHz (6E adds 6 GHz)
802.11be
Wi-Fi 7
2.4 / 5 / 6 GHz
Technology
Frequency / range
Use
Bluetooth
2.4 GHz, around 10 m
Personal area network: headsets, keyboards, speakers
RFID
Various frequencies
Tags read by radio: access badges, inventory, toll tags. Passive tags are powered by the reader's signal
NFC
13.56 MHz, a few cm
A subset of RFID: payments, pairing, access control
netsh wlan show interfaces \
netsh wlan show networks mode=bssid \
Service
What it does
Example
DNS server
Translates names to IP addresses
mail.example.com → 203.0.113.10
DHCP server
Hands out IP configuration automatically
Address, mask, gateway, DNS
File share
Central storage
SMB shares on Windows, NFS on Linux
Print server
Manages print queues and drivers centrally
One queue per printer for the whole office
Mail server
Sends (SMTP) and stores (IMAP/POP3) email
Exchange, Postfix
Syslog
Collects log messages from many devices centrally
Firewall and switch logs into a SIEM
Web server
Serves websites and web applications
IIS, Apache, Nginx
AAA server
Authentication, authorisation and accounting for network access
RADIUS, TACACS+
Spam gateway
Filters email for spam and malware before delivery
Email security appliance or cloud service
All-in-one security appliance (UTM)
Firewall, IPS, content filtering, anti-malware, VPN in one box
Small-office firewall
Load balancer
Spreads requests across servers; removes failed ones
Web server farm
Proxy server
Makes requests on clients' behalf — filtering, caching, logging
Web proxy
SCADA / ICS
Monitors and controls industrial equipment
Power, water, manufacturing
Legacy and embedded systems
Old or single-purpose systems that can't easily be updated
Old OS running a machine tool
IoT devices
Networked smart devices
Cameras, thermostats, sensors
PC --(1) "www.example.com?"--> Recursive resolver (ISP or company DNS) | +-(2) root server: "ask .com" +-(3) .com TLD server: "ask example.com's" +-(4) authoritative server: 93.184.215.14 PC <--(5) "93.184.215.14" ------+ (answer cached for its TTL)
The TTL (time to live) controls how long the answer is cached. That's why DNS changes aren't instant, and why ipconfig /flushdns sometimes fixes stale results.
Record
Purpose
Example
A
Name → IPv4 address
www → 93.184.215.14
AAAA
Name → IPv6 address
www → 2606:2800:21f:cb07:6820:80da:af6b:8b2c
CNAME
Alias: one name points to another name
shop → shops.myplatform.com
MX
Mail servers for the domain, with priority
10 mail.example.com
TXT
Free-form text — used for verification and email security
SPF, DKIM, DMARC
Record
Answers
Lives at
SPF
Which servers may send mail for this domain?
TXT on the domain itself
DKIM
Is this message's signature valid? (Publishes the public key)
TXT at
DMARC
What should receivers do if SPF/DKIM fail — and where to report?
TXT at _dmarc.
Worked example — reading the records:
example.com. TXT "v=spf1 include:spf.protection.outlook.com -all" _dmarc.example.com. TXT "v=DMARC1; p=quarantine; rua=mailto:dmarc@example.com"- SPF: Microsoft 365's servers may send for example.com. -all means hard fail — every other sender is unauthorised. (~all would be a soft fail.)
nslookup -type=txt example.com nslookup -type=txt _dmarc.example.com Resolve-DnsName example.com -Type MX
DORA:
Client DHCP server | --- DISCOVER (broadcast: any DHCP?) ---> | | <-- OFFER (you can have .50) -------- | | --- REQUEST (I'll take .50) ----------> | | <-- ACK (it's yours for 8 hours) -- |
Term
Meaning
Scope
The range of addresses the server can hand out, plus options
Pool
The available addresses within the scope
Exclusion
Addresses inside the scope that are never handed out (e.g. for static devices)
Reservation
A specific address always given to a specific MAC address
Lease
How long the client may keep its address; it tries to renew at 50 % of the lease
Options
Extra settings sent to clients: default gateway, DNS servers, domain name
Worked example — designing a small office scope:
ipconfig /all \
ipconfig /release ipconfig /renew
A VLAN (virtual LAN) splits one physical switch into several separate logical networks — separate broadcast domains. Devices in different VLANs can't talk directly; traffic between them must go through a router or layer 3 switch, where it can be filtered.
One managed switch
+---------------------------------------------+ | VLAN 10 Staff | VLAN 20 Guests | VLAN 30 IoT | | PC PC PC | Laptop Phone | Cam Cam | +---------------------------------------------+ \ | / +---- Router / firewall ----+ (controls traffic between VLANs)
A VPN (virtual private network) creates an encrypted tunnel across an untrusted network such as the internet.
Type
Connects
Example
Client-to-site (remote access)
One user's device to the organisation's network
A remote worker's VPN client connects to the office firewall or VPN concentrator
Site-to-site
Two networks permanently
Head office ↔ branch office, between firewalls
Device
Works with
Behaviour
Router
IP addresses (layer 3)
Forwards traffic between networks; connects the LAN to the internet. Home routers add NAT, DHCP, Wi-Fi and a firewall
Unmanaged switch
MAC addresses (layer 2)
Plug and play. Learns which MAC is on which port and forwards frames only there; no configuration
Managed switch
MAC (layer 2) and sometimes IP
Configurable: VLANs, port settings, QoS, port mirroring, monitoring
Access point
Layer 2
Bridges wireless clients onto the wired network
Patch panel
—
Cable runs punched down at the back; short patch cables at the front connect to switches
Firewall
Layer 3–7
Allows or blocks traffic by rules (IP, port, application)
Cable modem
—
Connects to the ISP over coax (DOCSIS)
DSL modem
—
Connects to the ISP over the telephone line
ONT
—
Optical network terminal: converts the ISP's fibre to Ethernet
NIC
Layer 2
The device's network interface; each has a unique MAC address
Worked example — how a switch learns:
(A hub, by contrast, always repeats everything to every port.)
PoE sends power and data over one Ethernet cable — ideal for access points, IP phones and cameras mounted where there's no power socket.
Standard
Name
Max power per port
802.3af
PoE
15.4 W
802.3at
PoE+
30 W
802.3bt
PoE++ (Type 3 / Type 4)
60 W / 100 W
Power can come from a PoE switch or a PoE injector placed between a normal switch and the device.
An IPv4 address is 32 bits, written as four octets (0–255): 192.168.1.50.
The subnet mask shows which part identifies the network and which identifies the host:
Notation
Mask
Network part
Host part
/8
255.0.0.0
First octet
Last three octets
/16
255.255.0.0
First two octets
Last two octets
/24
255.255.255.0
First three octets
Last octet
Worked example — 192.168.1.50 /24:
Item
Value
Network address
192.168.1.0
Usable host range
192.168.1.1 – 192.168.1.254 (254 hosts)
Broadcast address
192.168.1.255
This host
.50
Two devices can talk directly only if they're on the same network. Otherwise traffic goes to the default gateway (the router), usually .1.
Range
Type
10.0.0.0/8
Private
172.16.0.0/12 (172.16.x.x – 172.31.x.x)
Private
192.168.0.0/16
Private
169.254.0.0/16
APIPA / link-local — self-assigned when DHCP fails
127.0.0.1
Loopback ("this computer")
Everything else (mostly)
Public — routable on the internet
Private addresses aren't routed on the internet. NAT on the router translates them to the router's public IP for outbound traffic.
Worked example — shortening:
Method
How
Best for
Static
Manually set IP, subnet mask, default gateway and DNS servers
Servers, printers, network devices
Dynamic (DHCP)
Automatically leased from a DHCP server
Client PCs, phones, laptops
DHCP reservation
DHCP always gives the same IP to a given MAC
Printers that need a fixed address but central management
APIPA
The OS gives itself 169.254.x.x when no DHCP server answers
A symptom, not a solution — it only reaches the local segment, with no gateway
Worked example — an APIPA ticket:
Setting a static address:
Get-NetIPConfiguration New-NetIPAddress -InterfaceAlias "Ethernet" -IPAddress 192.168.10.15 -PrefixLength 24 -DefaultGateway 192.168.10.1 Set-DnsClientServerAddress -InterfaceAlias "Ethernet" -ServerAddresses 192.168.10.2
Type
Medium
Traits
Fibre
Light through glass; ONT at the premises
Fastest; symmetric options; low latency
Cable
Coax (DOCSIS)
Fast; bandwidth shared with the neighbourhood
DSL
Telephone line
Slower; download faster than upload; slows with distance from the exchange
Satellite
Radio to satellites
Geostationary: high latency. Low-earth-orbit constellations: much lower latency
Cellular
4G/5G
Mobile routers and hotspots; good backup links
WISP
Fixed wireless to a tower
Rural areas; needs line of sight
Type
Scale
Example
PAN
Personal — around one person
Bluetooth headset and phone
LAN
A building or site
Office network
WLAN
Wireless LAN
Office Wi-Fi
WAN
Connects distant sites
Offices linked across the country; the internet
SAN
Dedicated high-speed storage network
Servers accessing shared block storage
Tool
Use
Scenario
Crimper
Attaches RJ45 connectors to cable
Making a patch cable
Cable stripper
Removes the outer jacket cleanly
Preparing cable for crimping or punching down
Cable tester
Checks continuity and correct pin-out
"Is this new cable wired right?"
Punch-down tool
Seats wires into patch panels and keystone jacks
Terminating a wall-port cable run
Tone generator and probe
Traces a cable to its other end
"Which patch panel port goes to desk 14?"
Loopback plug
Loops a port's transmit back into its receive
Testing a NIC or switch port
Wi-Fi analyzer
Shows networks, channels, signal and interference
Choosing the least congested channel
Network tap
Copies traffic passing through a link
Feeding a monitoring or IDS system
Term
Definition
Encapsulation
Wrapping data in successive protocol headers
IP address
A logical address identifying a device on a network
Port
A number identifying an application or service on a host
TCP / UDP
Reliable connection-oriented / fast connectionless transport
Three-way handshake
SYN, SYN-ACK, ACK — how TCP opens a connection
Ephemeral port
A temporary high-numbered client port
Non-overlapping channels
2.4 GHz channels 1, 6 and 11
RFID / NFC
Radio tags / very short-range wireless communication
DNS
Translates names to IP addresses
TTL
Time to live — how long a DNS answer is cached
SPF / DKIM / DMARC
Email sender authorisation / signing / policy and reporting
DHCP / DORA
Automatic IP configuration / Discover, Offer, Request, Acknowledge
Scope / reservation / exclusion
DHCP range / fixed MAC-to-IP mapping / addresses kept out of the pool
VLAN
A logical network separated on shared switch hardware
VPN
An encrypted tunnel over an untrusted network
Router / switch
Forwards between networks by IP / within a network by MAC
PoE
Power over Ethernet
ONT
Optical network terminal
Subnet mask / CIDR
Network/host split, e.g. 255.255.255.0 = /24
APIPA
Self-assigned 169.254.x.x address when DHCP fails
NAT
Translates private addresses to a public address
Link-local (IPv6)
An fe80:: address valid only on the local link